package com.example.app.components.MyListItem

import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.unit.dp
import com.example.app.ui.theme.listItemStartPadding

//套在MyListItem外面，占满width
@Composable
fun MyListItemWrapColumn(
        myListItemWrapColumnBackgroundColor: Color,
        modifier: Modifier = Modifier
            .fillMaxWidth()
            .background(myListItemWrapColumnBackgroundColor)
            .padding(
                PaddingValues(
                    listItemStartPadding,
                    0.dp
                )
            ),
        content: @Composable ColumnScope.() -> Unit
) {
    Column(
        modifier
    ) {
        content()
    }
}